import Vue from 'vue';
import App from './App';
// 弹出框
import DialogBox from './components/DialogBox/DialogBox';

import tui from './common/httpRequest'
import util from './common/util'
import socketIO from '@/common/socket.js'
import wechat from './common/wechat'
import invite from './common/invite'
Vue.prototype.socketIo = new socketIO()
// #ifdef H5

// const vconsole = require('vconsole')
// Vue.prototype.$vconsole = new vconsole() // 使用vconsole
// #endif
Vue.prototype.tui = tui
Vue.prototype.$util = util;
Vue.prototype.wechat = wechat
Vue.config.productionTip = false

// 全局组件
Vue.use(invite)
Vue.component('DialogBox', DialogBox);
//mescroll
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
